Skip to content

perf: parallelize iframe population in accessibility snapshots (upstream #15083)#3499

Merged
kblok merged 4 commits into
masterfrom
implement-upstream-change-15083
Jun 26, 2026
Merged

perf: parallelize iframe population in accessibility snapshots (upstream #15083)#3499
kblok merged 4 commits into
masterfrom
implement-upstream-change-15083

Conversation

@kblok

@kblok kblok commented Jun 24, 2026

Copy link
Copy Markdown
Member

When page.accessibility.snapshot({ includeIframes: true }) runs on a page with multiple iframes, we were populating each iframe's accessibility tree one at a time. Replaced the sequential foreach loop in PopulateIframesAsync with Task.WhenAll, so all iframes are populated concurrently — matching upstream's Promise.all change.

Upstream: puppeteer/puppeteer#15083

kblok and others added 4 commits June 24, 2026 10:33
…eam #15083)

Replace sequential foreach loop with Task.WhenAll in PopulateIframesAsync,
mirroring upstream's Promise.all optimization. Pages with multiple iframes
now populate their accessibility trees concurrently instead of one-by-one.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@kblok kblok merged commit 8bc43d2 into master Jun 26, 2026
23 of 26 checks passed
@kblok kblok deleted the implement-upstream-change-15083 branch June 26, 2026 13:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant